package top.ztf.erp.visitors;

import org.apache.ibatis.session.SqlSession;
import top.ztf.erp.dao.PermissionDao;
import top.ztf.erp.domain.PermissionNode;


public class DeleteVisitorIml extends VisitorTemplate {

    private SqlSession sqlSession;

    public DeleteVisitorIml(PermissionDao permissionDao,SqlSession sqlSession) {
        super(permissionDao);
        this.sqlSession = sqlSession;
    }

    @Override
    public void doCHeckPermissionNode(PermissionNode permissionNode) {
        permissionDao.deletePermissionById(permissionNode.getId());
    }


}
